<?php

/**
 * DocumentosAplicacion filter form base class.
 *
 * @package    auip
 * @subpackage filter
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormFilterGeneratedTemplate.php 29570 2010-05-21 14:49:47Z Kris.Wallsmith $
 */
abstract class BaseDocumentosAplicacionFormFilter extends BaseFormFilterDoctrine
{
  public function setup()
  {
    $this->setWidgets(array(
      'ruta'              => new sfWidgetFormFilterInput(array('with_empty' => false)),
      'nombre'            => new sfWidgetFormFilterInput(),
      'cargo'             => new sfWidgetFormFilterInput(),
      'email'             => new sfWidgetFormFilterInput(),
      'telefono'          => new sfWidgetFormFilterInput(),
    ));

    $this->setValidators(array(
      'ruta'              => new sfValidatorPass(array('required' => false)),
      'nombre'            => new sfValidatorPass(array('required' => false)),
      'cargo'             => new sfValidatorPass(array('required' => false)),
      'email'             => new sfValidatorPass(array('required' => false)),
      'telefono'          => new sfValidatorPass(array('required' => false)),
    ));

    $this->widgetSchema->setNameFormat('documentos_aplicacion_filters[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    $this->setupInheritance();

    parent::setup();
  }

  public function getModelName()
  {
    return 'DocumentosAplicacion';
  }

  public function getFields()
  {
    return array(
      'beca_id'           => 'Number',
      'usuario_id'        => 'Text',
      'tipo_documento_id' => 'Number',
      'ruta'              => 'Text',
      'nombre'            => 'Text',
      'cargo'             => 'Text',
      'email'             => 'Text',
      'telefono'          => 'Text',
    );
  }
}
